package com.wangtao.stock.config;


import com.wangtao.stock.filter.SecondFilter;
import org.springframework.beans.factory.annotation.Autowired;

//@Configuration
public class FilterConfig {

    @Autowired
    SecondFilter secondFilter;

//    @Bean
//    public FilterRegistrationBean secondFilter(){
//        FilterRegistrationBean filterRegistrationBean  = new FilterRegistrationBean();
//        filterRegistrationBean.setFilter(secondFilter);
////        filterRegistrationBean.setOrder(1);
//        filterRegistrationBean.setName("secondFilter");
//        filterRegistrationBean.addUrlPatterns("/user/*");
//        return filterRegistrationBean;
//    }
}
